import { defHttp } from '/@/utils/http/axios';

enum Api {
  deptList = '/admin-api/system/dept/list',
  postList = '/admin-api/system/post/list-all-simple',
  roleList = '/admin-api/system/role/list-all-simple',
  dictall = '/admin-api/system/dict-data/list-all-simple',
}

/**
 * @description: 获字典
 */
export const getDeptList = (params) => {
  return defHttp.get<any>({ url: Api.deptList, params });
};
export const getPostList = (params: any) => {
  return defHttp.get<any>({ url: Api.postList, params });
};
export const getRoleList = (params: any) => {
  return defHttp.get<any>({ url: Api.roleList, params });
};
export const listSimpleDictData = (params: any) => {
  return defHttp.get<any>({ url: Api.dictall, params });
};
